﻿@{
    ViewBag.Title = "诸子讲坛";
    Layout = "~/Views/Shared/Main.cshtml";
    //TempData["sidecalss"] = "EducationLecturer";

    var Rostruming = ViewData["PhilosopherBema"] as HanGu.Entity.VBemaLecturerInfo ?? new HanGu.Entity.VBemaLecturerInfo();
    var PlanBemas = ViewData["PlanBemas"] as List<HanGu.Entity.VBemaLecturerInfo>??new List<HanGu.Entity.VBemaLecturerInfo>();
    var BemasIsTops = ViewData["BemasIsTops"] as List<HanGu.Entity.VBemaLecturerInfo> ?? new List<HanGu.Entity.VBemaLecturerInfo>();
}
@section Header
{
    <style>
        #partContent
        {
            width: 100%;
        }
        .movieContain
        {
            width: 100%;
            margin-top: 5px;
        }
        .ContentTitleRight
        {
            width: 300px;
        }
        #partContent .content
        {
            padding-left: 0px;
        }
        .ContentTitleLeft
        {
            padding-left: 30px;
        }
        
    </style>
}
@section Banner
{
    @Html.Partial("Banner")
}
@section Content{
    <div class="contentLeft" style="width: 100%;">
        <table cellpadding="0" cellspacing="0" id="partContent">
            <tr>
                <td>
                    <div class="ContentTitle">
                        <div class="ContentTitleLeft" style="padding-left: 0px">
                            <img src="/Content/images/rostrumTitle.gif" width="145" height="26" alt=""></div>
                        <div class="ContentTitleRight" style="padding-top: 0px">
                            @* <input type="text" name="key" class="textInput focus" />
                            <input type="button" class="buttonContent" value="搜索" />*@
                        </div>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="content">
                    <div class="detail">
                        @TempData["ModuleDetail"]
                    </div>
                    <div class="clear">
                    </div>
                    <div class="Educationlist" style="padding-left: 0">
                        <div class="contentLeft" style="width: 360px;">
                            <table cellpadding="0" cellspacing="0" id="partContent">
                                <tr>
                                    <td style="vertical-align: bottom; padding-top: 5px">
                                        <div>
                                            <div class="ContentTitleLeft">
                                                <img src="/Content/images/rostruming.gif" alt=""></div>
                                            <div class="ContentTitleRight" style="width: 80px">
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="content">
                                        <table id="__01" width="100%" border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td class="BorderTopLeft">
                                                </td>
                                                <td class="BorderTopMiddle">
                                                </td>
                                                <td class="BorderTopRight">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="BorderMiddleLeft">
                                                </td>
                                                <td style="height: 290px; overflow: hidden; vertical-align: top">
                                                    <!--Content_S-->
                                                    <div class="movieContain">
                                                        <div class="parent_panel">
                                                            <div class="movie_image_panel">
                                                                @if (!string.IsNullOrEmpty(Rostruming.TitlePic))
                                                                {
                                                                    <a href="/rostrum/Content/@Rostruming.ID">
                                                                        <img src="@Rostruming.TitlePic" alt="@Rostruming.Title"  /></a>
                                                                }
                                                            </div>
                                                            <div class="movie_text_panel">
                                                                <ul>
                                                                    <li>讲师：
                                                                        @{
                                                                            if (Rostruming != null && !string.IsNullOrEmpty(Rostruming.LecturerID) && !string.IsNullOrEmpty(Rostruming.LecturerName))
                                                                            {
                                                                                string[] lecturerids = Rostruming.LecturerID.Split(',');
                                                                                string[] lecturerNames = Rostruming.LecturerName.Split(',');
                                                                                if (lecturerids != null && lecturerNames != null && lecturerids.Length == lecturerNames.Length)
                                                                                {
                                                                                    for (int i = 0; i < lecturerids.Length; i++)
                                                                                    {
                                                                            <a href="/Lecturers/detail/@lecturerids[i]">@lecturerNames[i]</a>
                                                                                    }
                                                                                }
                                                                            }
                                                                        }
                                                                    </li>
                                                                    <li>主题：<a href="/rostrum/Content/@Rostruming.ID" title="@Rostruming.Title">@Rostruming.Title</a></li>
                                                                    <li>时间：<span formatdate="yyyy年MM月dd日">@Rostruming.PlayTime</span></li>
                                                                    @*<li>地点：@Rostruming.PlayAddress</li>*@
                                                                    <li>@*@{
                                                                            int len = 210;
                                                                            string html = Hangu.WebClient.MyHtmlHelper.FormatHtml(@Rostruming.Remark).ToHtmlString();
                                                                            if (html.Length > len)
                                                                            { html = html.Substring(0, len) + "..."; }
                                                                            @html;
                                                                        }*@
                                                                        
                                                                    </li>
                                                                </ul>
                                                            </div>
                                                            <div class="clear"></div>
                                                            <div style=" margin:3px; height:180px;overflow: hidden;text-overflow:ellipsis;white-space:normal;" title="@Hangu.WebClient.MyHtmlHelper.FormatHtml(@Rostruming.Summary)">
                                                                            简介：@Hangu.WebClient.MyHtmlHelper.FormatHtml(@Rostruming.Summary)</div>
                                                        </div>
                                                    </div>
                                                    <!--Content_E-->
                                                </td>
                                                <td class="BorderMiddleRight">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="BorderBottomLeft">
                                                </td>
                                                <td class="BorderBottomMiddle">
                                                </td>
                                                <td class="BorderBottomRight">
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div class="contentRight" style="width: 360px;">
                            <table cellpadding="0" cellspacing="0" id="partContent">
                                <tr>
                                    <td style="vertical-align: bottom; ">
                                        <div style="width:100%">
                                            <div class="ContentTitleLeft">
                                                <img src="/Content/images/rostrumplan.gif" alt=""></div>
                                            <div class="ContentTitleRight" style="width: 80px; margin-right: 20px">
                                                <a href="/Rostrum/Plans"><span style="color:Red; text-decoration:none">更多》</span></a>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="content">
                                        <table id="__01" width="100%" border="0" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td class="BorderTopLeft">
                                                </td>
                                                <td class="BorderTopMiddle">
                                                </td>
                                                <td class="BorderTopRight">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="BorderMiddleLeft">
                                                </td>
                                                <td style="height: 290px; overflow: hidden; vertical-align: top">
                                                    <!--Content_S-->
                                                    @foreach (var item in PlanBemas)
                                                    {
                                                        <div class="movieContain">
                                                            <div class="parent_panel">
                                                                <div class="movie_image_panel">
                                                                    @if (!string.IsNullOrEmpty(item.TitlePic))
                                                                    {
                                                                        <a href="/rostrum/Content/@item.ID">
                                                                            <img src="@item.TitlePic.Replace("_B", "_S")" alt="@item.Title" style="height:80px"/></a>
                                                                    }
                                                                </div>
                                                                <div class="movie_text_panel">
                                                                    <ul>
                                                                        <li>讲师：
                                                                            @{
                                                                    if (item != null && !string.IsNullOrEmpty(item.LecturerID) && !string.IsNullOrEmpty(item.LecturerName))
                                                                    {
                                                                        string[] lecturerids = item.LecturerID.Split(',');
                                                                        string[] lecturerNames = item.LecturerName.Split(',');
                                                                        if (lecturerids != null && lecturerNames != null && lecturerids.Length == lecturerNames.Length)
                                                                        {
                                                                            for (int i = 0; i < lecturerids.Length; i++)
                                                                            {
                                                                                <a href="/Lecturers/detail/@lecturerids[i]">@lecturerNames[i]</a>
                                                                            }
                                                                        }
                                                                    }
                                                                            }
                                                                        </li>
                                                                        <li>主题： <a href="/rostrum/Content/@item.ID" title="@item.Title">@item.Title</a></li>
                                                                        <li>时间：<span formatdate="yyyy年MM月dd日">@item.PlayTime</span></li>
                                                                    </ul>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="clear">
                                                        </div>
                                                    }
                                                    <!--Content_E-->
                                                </td>
                                                <td class="BorderMiddleRight">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="BorderBottomLeft">
                                                </td>
                                                <td class="BorderBottomMiddle">
                                                </td>
                                                <td class="BorderBottomRight">
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                    <div class="clear">
                    </div>
                    <div class="clear" />
                    <div class="wonderfulstory">
                        <table cellpadding="0" cellspacing="0" id="partContent">
                            <tr>
                                <td style="vertical-align: bottom; padding-top: 5px">
                                    <div>
                                        <div class="ContentTitleLeft" style="padding-top: 20px">
                                            <img src="/Content/images/wonderfulstory.gif" alt=""></div>
                                        <div class="ContentTitleRight" style="width: 80px; margin-right: 20px; padding-top: 20px">
                                            <a href="/Rostrum/list"><span style="color:Red; text-decoration:none">更多》</span></a>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="content">
                                    <table id="__01" width="100%" border="0" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td class="BorderTopLeft">
                                            </td>
                                            <td class="BorderTopMiddle">
                                            </td>
                                            <td class="BorderTopRight">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="BorderMiddleLeft">
                                            </td>
                                            <td id="">
                                                <!--Content_S-->
                                                @Html.Partial("Marquee")
                                                <!--Content_E-->
                                            </td>
                                            <td class="BorderMiddleRight">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="BorderBottomLeft">
                                            </td>
                                            <td class="BorderBottomMiddle">
                                            </td>
                                            <td class="BorderBottomRight">
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
        </table>
    </div>
}
@section Side{
    @Html.Partial("Side")
}
